package com.daniel.bootdemoh;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * >
 *
 * @author DaiZM
 * @description >
 * @date 2017/10/28
 */
@Component
@ConfigurationProperties(prefix = "author")
@PropertySource("classpath:/config/author.properties")
public class Author {

	private String name;
	private int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}
